﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace elr_tracking_bal.POM
{
    public class POM_Articulo : INotifyPropertyChanged
    {
        private POM _POM;
        private int _ID_POM_ARTICULO;
        private ART.Articulo _ARTICULO;
        private int _CANTIDAD;
        private float _COSTO_UNITARIOSTO;
        private float _IVA;
        private CAT.Moneda _MONEDA;
        private int _TC;
        private float _DESCUENTO;

        public int ID_POM_ARTICULO
        {
            get
            {
                return _ID_POM_ARTICULO;
            }
            set
            {
                if (_ID_POM_ARTICULO != value)
                {
                    _ID_POM_ARTICULO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("ID_POM_ARTICULO"));
                    }
                }
            }
        }

        public int CANTIDAD
        {
            get
            {
                return _CANTIDAD;
            }
            set
            {
                if (_CANTIDAD != value)
                {
                    _CANTIDAD = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("CANTIDAD"));
                    }
                }
            }
        }

        public float COSTO_UNITARIOSTO
        {
            get
            {
                return _COSTO_UNITARIOSTO;
            }
            set
            {
                if (_COSTO_UNITARIOSTO != value)
                {
                    _COSTO_UNITARIOSTO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("COSTO_UNITARIOSTO"));
                    }
                }
            }
        }

        public float IVA
        {
            get
            {
                return _IVA;
            }
            set
            {
                if (_IVA != value)
                {
                    _IVA = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("IVA"));
                    }
                }
            }
        }

        public int TC
        {
            get
            {
                return _TC;
            }
            set
            {
                if (_TC != value)
                {
                    _TC = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("TC"));
                    }
                }
            }
        }

        public float DESCUENTO
        {
            get
            {
                return _DESCUENTO;
            }
            set
            {
                if (_DESCUENTO != value)
                {
                    _DESCUENTO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("DESCUENTO"));
                    }
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
